﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RechercheEmplois.Models
{
    public class Ville
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Key]
        [Display(Name = "Code Postal")]
        public int ID { get; set; } 

        [Display(Name = "Ville")]
        public string Libelle { get; set; }

        public int ProvineID { get; set; }

        public virtual Provine Provine { get; set; }

        public virtual ICollection<Offre> Offres { get; set; }
    }

    public class Provine
    {
        public int ID { get; set; }

        public string Libelle { get; set; }

        public virtual ICollection<Ville> Villes { get; set; } 
    }

}